package com.douding.server.dto;

        import java.util.Date;
        import com.fasterxml.jackson.annotation.JsonFormat;

public class SectionDto {

    /**
    * id
    */
    private String id;

    /**
    * 标题
    */
    private String title;

    /**
    * 课程|course.id
    */
    private String courseId;

    /**
    * 大章|chapter.id
    */
    private String chapterId;

    /**
    * 视频
    */
    private String video;

    /**
    * 时长|单位秒
    */
    private Integer time;

    /**
    * 收费|C 收费；F 免费
    */
    private String charge;

    /**
    * 顺序
    */
    private Integer sort;

    /**
    * 创建时间
    */
        @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdAt;

    /**
    * 修改时间
    */
        @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updatedAt;

    public String getId() {
    return id;
    }

    public void setId(String id) {
    this.id = id;
    }

    public String getTitle() {
    return title;
    }

    public void setTitle(String title) {
    this.title = title;
    }

    public String getCourseId() {
    return courseId;
    }

    public void setCourseId(String courseId) {
    this.courseId = courseId;
    }

    public String getChapterId() {
    return chapterId;
    }

    public void setChapterId(String chapterId) {
    this.chapterId = chapterId;
    }

    public String getVideo() {
    return video;
    }

    public void setVideo(String video) {
    this.video = video;
    }

    public Integer getTime() {
    return time;
    }

    public void setTime(Integer time) {
    this.time = time;
    }

    public String getCharge() {
    return charge;
    }

    public void setCharge(String charge) {
    this.charge = charge;
    }

    public Integer getSort() {
    return sort;
    }

    public void setSort(Integer sort) {
    this.sort = sort;
    }

    public Date getCreatedAt() {
    return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
    this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
    return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
    this.updatedAt = updatedAt;
    }


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", title=").append(title);
    sb.append(", courseId=").append(courseId);
    sb.append(", chapterId=").append(chapterId);
    sb.append(", video=").append(video);
    sb.append(", time=").append(time);
    sb.append(", charge=").append(charge);
    sb.append(", sort=").append(sort);
    sb.append(", createdAt=").append(createdAt);
    sb.append(", updatedAt=").append(updatedAt);
sb.append("]");
return sb.toString();
}

}